<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-hatchetAcq-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">银行通道名称：</label>
				<div class="col-sm-8">
					<input id="acqName" name="acqName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">通道描述：</label>
				<div class="col-sm-8">
					<input id="description" name="description" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">通道状态：</label>
				<div class="col-sm-8">
					<select class="form-control m-b" name="status" th:with="type=${@dict.getType('agent_acq_status')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">根据银行通道返回码发冲正：</label>
				<div class="col-sm-8">
					<input id="rspcdRevert" name="rspcdRevert" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">根据返回处理码重新签到：</label>
				<div class="col-sm-8">
					<input id="processcdResign" name="processcdResign" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">根据响应码重新签到：</label>
				<div class="col-sm-8">
					<input id="rspcdResign" name="rspcdResign" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">优先级：</label>
				<div class="col-sm-8">
					<input id="priority" name="priority" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/hatchetAcq"
		$("#form-hatchetAcq-add").validate({
			rules:{
				priority:{
        			required:true,
        			digits:true
        		},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-hatchetAcq-add').serialize());
	        }
	    }
	</script>
</body>
</html>
